package com.yuantu.judiciary.service;

import com.yuantu.judiciary.model.enums.UserRelationType;
import com.yuantu.judiciary.model.form.GetQueryInfoForm;
import com.yuantu.judiciary.model.form.SearchRelationForm;
import com.yuantu.judiciary.model.vo.PageVO;
import com.yuantu.judiciary.model.vo.UserRelationVO;
import org.springframework.data.domain.Pageable;

/**
 * 用户关系
 *
 * @author syw
 * @since 2023-07-25
 **/
public interface IUserRelationService {

    Boolean add(Long userId, GetQueryInfoForm form, UserRelationType type);

    Boolean cancel(Long userId, GetQueryInfoForm form, UserRelationType type);

    PageVO<UserRelationVO> getRelationPage(Long userId, Pageable pageable, UserRelationType type, SearchRelationForm form);

}
